require("../../assets/css/reset.css");
require("./ad.css");

const timeNode = document.querySelector("#time");
window.addEventListener("DOMContentLoaded", function () {
	num = 5;
	this.setInterval(function () {
		num--;
		timeNode.textContent = num;
		if (num === 0) {
			location.href = "register.html";
		}
	}, 1000);

	const passNode = document.querySelector("#pass");
	passNode.addEventListener("click", function () {
		location.href = "register.html";
	});
});
